﻿@using WikeSoft.Core.Extension
@using WikeSoft.Data.Enum
@model WikeSoft.Enterprise.Models.Sys.PageEditModel

@{
    ViewBag.Title = "修改页面";
    Layout = "~/Views/Shared/_Form.cshtml";
    string v = System.Configuration.ConfigurationManager.AppSettings["version"];
}
@section scripts{
    <script src="~/Scripts/page/wike.page.dialog.js?v=@v"></script>
}



<form class="form-horizontal" action="@Url.Action("Edit")" method="post">
    @Html.HiddenFor(x=>x.Id)
    <div class="form-group">
        @Html.LabelFor(x => x.ParentPageName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            <div class="input-group">
                @Html.TextBoxFor(x => x.ParentPageName, new {@class = "form-control", @readonly = "readonly"})
                @Html.ValidationMessageFor(x => x.ParentPageName)
                @Html.HiddenFor(x => x.ParentId)
                @Html.ValidationMessageFor(x => x.ParentId)
                <span class="input-group-btn">
                    <input type="button" class="btn btn-default" id="btnSelectPost" value="选择">
                    <input type="button" class="btn btn-default" id="btnClear" value="清空">
                </span>
            </div>

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.PageName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.PageName, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.PageName)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.PageCode, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.PageCode, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.PageCode)

        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.PagePath, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.PagePath, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.PagePath)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.CssName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.CssName, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.CssName)

        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.Description, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Description, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.Description)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.IsUsed, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.CheckBoxFor(x => x.IsUsed, new { title = "是否启用" })
        </div>
    </div>
    <div>
        <div style="text-align: center">
            <button class="btn btn-default" type="submit" action="submit">保存</button>
        </div>

    </div>
</form>
